#!/usr/bin/env bash
if [ -e ../settings.gradle ]
then
    echo 'move settings.gradle'
    mv ../settings.gradle ../settings.gradle.buildbak
fi

sh update-settings.sh

gradle clean build -x test

if [ -e ../settings.gradle.buildbak ]
then
    echo 'move settings.gradle.buildbak'
    mv ../settings.gradle.buildbak ../settings.gradle
fi
